/*
 * @Author: your name
 * @Date: 2021-04-01 16:34:05
 * @LastEditTime: 2021-04-07 09:32:42
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \web\node\models\Sowing.js
 */
/* 轮播图的模式对象 */
import mongoose from "mongoose"

const sowingSchema = mongoose.Schema({
    //图片名称
    image_title:{type:String, required:true},
    //图片的地址
    image_url:{type:String,required:true},
    //图片的链接
    image_link:{type:String,required:true},
    //上架时间
    s_time:{type:String,required:true},
    //下架时间
    e_time:{type:String,required:true},
    //添加轮播图时间
    c_time:{type:String, default: Date()},
    //最后编辑时间
    l_time:{type:String, default: Date()}
})

const Sowing = mongoose.model("sowing",sowingSchema);
export default Sowing;